<?php
function DoLogin($email, $password){
	$_SESSION['User']=array('name'=>$email);
	return false;
}

function IsLoggedIn(){
	return (GetCurrentUser() !=null);
}

function GetCurretUser(){
	return $_SESSION['User'];
}

function RequireLogin(){
	if(!IsLoggedIn()){
		header("Location: index.php");
		die();
	}
}